<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="h-ui-font/iconfont.min.css" />
		<link rel="stylesheet" type="text/css" href="css/jquery-weui.min.css" />
		<link rel="stylesheet" type="text/css" href="css/weui.min.css" />
		<script src="js/jquery-2.1.4.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/jquery-weui.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/vue(1).js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			body {
				width: 100%;
				margin: 0px auto;
				min-width: 320px;
				max-width: 640px;
			}
			
			.top {
				width: 100%;
				height: 50px;
				min-width: 320px;
				max-width: 640px;
				line-height: 50px;
				color: white;
				font-size: 18px;
				text-indent: 10px;
				position: fixed;
				background-color: #0F88EB;
			}
			.top a{
				color: white;
				margin-right: 10px;
			}
			.contents {
				width: 100%;
				padding-top: 50px;
				padding-bottom: 40px;
				overflow: auto;
				/*border: 1px solid red;*/
			}
			
			.weui-tabbar {
				min-width: 320px;
				max-width: 640px;
				height: 40px;
				position: fixed;
			}
			
			.weui-tabbar__icon {
				margin-top: -4px;
			}
			
			.active {
				color: rgba(0, 0, 255, 0.8) !important;
			}
			
			.message {
				width: 100%;
				height: 60px;
				overflow: hidden;
				color: black;
				position: relative;
				border-bottom: 1px solid #e0e0e0;
			}
			
			.message div {
				position: absolute;
				top: 0px;
				bottom: 0px;
				left: 10px;
				right: 0px;
				margin: auto 0px;
			}
			
			.message div:first-child {
				width: 40px;
				height: 40px;
				overflow: hidden;
				border: 1px solid #c0c0c0;
				border-radius: 20px;
				margin-top: 10px;
			}
			
			.message div:first-child img {
				height: 100%;
				border: none;
			}
			
			.message div:nth-of-type(2) {
				width: 60%;
				height: 50px;
				left: 70px;
				line-height: 50px;
				cursor: pointer;
				color: #808080;
				font-size: 18px;
			}
			.message div:nth-of-type(3){
				width: 60px;
				height: 25px;
				font-size: 12px;
				cursor: pointer;
				line-height: 25px;
				text-align: center;
				left: 80%;
				border: 1px solid;
				color: #c0c0c0;
			}
			.items{
				width: 100%;
				border-top: 5px solid #e0e0e0;
			}
			.weui-cell{
				color: #808080;
			}
			.weui-cells{
				margin-top: 0px;
			}
			.weui-cell__bd{
				margin-left: 10px;
			}
		</style>
	</head>

	<body>
		<div class="top"><a href="more.html" class="Hui-iconfont Hui-iconfont-slider-left"></a>我的关注</div>
		<div class="contents">
			<div class="message" v-for="item in json1[2]">
				<div><img :src="item.touxiang"/></div>
				<div>
					<p v-html="item.nicheng">name</p>
				</div>
				<div>已关注</div>
			</div>
			
			
		</div>
		<div class="weui-tabbar">
			<a href="index.html" class="weui-tabbar__item">
				<div class="weui-tabbar__icon">
					<i class="Hui-iconfont Hui-iconfont-canshu"></i>
				</div>
			</a>
			<a href="find.html" class="weui-tabbar__item">
				<div class="weui-tabbar__icon">
					<i class="Hui-iconfont Hui-iconfont-yanjing"></i>
				</div>
			</a>
			<a href="chart.html" class="weui-tabbar__item">
				<div class="weui-tabbar__icon">
					<i class="Hui-iconfont Hui-iconfont-xiaoxi1"></i>
				</div>
			</a>
			<a href="more.html" class="weui-tabbar__item">
				<div class="weui-tabbar__icon">
					<i class="Hui-iconfont Hui-iconfont-menu active"></i>
				</div>
			</a>
		</div>
		<script type="text/javascript">
			var ss = sessionStorage.getItem("token");
			var dd = sessionStorage.getItem("appid");
			var vue = new Vue({
				el: "body",
				data: {
					json1: [],

				},
				methods: {
					start: function() {
						$.ajax({
							type: "get",
							url: "http://v2.mashupcloud.cn/SQL/sel_follow/",
							data: {
								appid: dd,
								token: ss,
								name: 'sel_follow',
								_v1: sessionStorage.getItem("username")
							},
							success: function(json) {
								vue.json1 = JSON.parse(json);
								console.log(vue.json1)
								console.log(vue.json1[2][0])
							}
						});
					},
					content:function(index){
						location.href = "content.html?" + "index=" + encodeURI(vue.json1[2][index].id);
					}
				}
			});
			vue.start();
		</script>
	</body>

</html>
